package com.ruoyi.web.controller.vantController.financialSupportController;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.vantservice.financialSupport.ApiProductSuperiorityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * Created by 惠普 on 2021/1/9 17:45
 */
@RestController
@RequestMapping("/api/productSuperiority")
public class ApiProductSuperiorityController {
    @Resource
    private ApiProductSuperiorityService apiProductSuperiorityService;

    /**
     * 查询全部的产品优势
     * @return
     */
    @PostMapping("/ProductSuperiorityBuNull")
    public AjaxResult ProductSuperiorityBuNull(){
        return AjaxResult.success(apiProductSuperiorityService.getProductSuperiorityByState());
    }

}
